package com.rocpenghua.design.state;

/**
 * @author pengp
 * @date 2023年02月23日 11:20
 */
public class MainTest {
    public static void main(String[] args) {
        Context context = new Context();
        StartState startState = new StartState();
        startState.doAction(context);
        System.out.println(context.getState().toString());
        StopState stopState = new StopState();
        stopState.doAction(context);
        System.out.println(context.getState().toString());
    }
}
/**
 * Player is in start state
 * Start State
 * Player is in stop state
 * Stop State
 */